package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RentalSysPaymentRecordsMapper;
import com.ruoyi.system.domain.RentalSysPaymentRecords;
import com.ruoyi.system.service.IRentalSysPaymentRecordsService;

/**
 * 支付记录Service业务层处理
 *
 * @author Mag1c_-xyy
 * @date 2024-04-21
 */
@Service
public class RentalSysPaymentRecordsServiceImpl implements IRentalSysPaymentRecordsService
{
    @Autowired
    private RentalSysPaymentRecordsMapper rentalSysPaymentRecordsMapper;

    /**
     * 查询支付记录
     *
     * @param paymentId 支付记录主键
     * @return 支付记录
     */
    @Override
    public RentalSysPaymentRecords selectRentalSysPaymentRecordsByPaymentId(Long paymentId)
    {
        return rentalSysPaymentRecordsMapper.selectRentalSysPaymentRecordsByPaymentId(paymentId);
    }

    /**
     * 查询支付记录列表
     *
     * @param rentalSysPaymentRecords 支付记录
     * @return 支付记录
     */
    @Override
    public List<RentalSysPaymentRecords> selectRentalSysPaymentRecordsList(RentalSysPaymentRecords rentalSysPaymentRecords)
    {
        return rentalSysPaymentRecordsMapper.selectRentalSysPaymentRecordsList(rentalSysPaymentRecords);
    }

    /**
     * 新增支付记录
     *
     * @param rentalSysPaymentRecords 支付记录
     * @return 结果
     */
    @Override
    public int insertRentalSysPaymentRecords(RentalSysPaymentRecords rentalSysPaymentRecords)
    {
        return rentalSysPaymentRecordsMapper.insertRentalSysPaymentRecords(rentalSysPaymentRecords);
    }

    /**
     * 修改支付记录
     *
     * @param rentalSysPaymentRecords 支付记录
     * @return 结果
     */
    @Override
    public int updateRentalSysPaymentRecords(RentalSysPaymentRecords rentalSysPaymentRecords)
    {
        return rentalSysPaymentRecordsMapper.updateRentalSysPaymentRecords(rentalSysPaymentRecords);
    }

    /**
     * 批量删除支付记录
     *
     * @param paymentIds 需要删除的支付记录主键
     * @return 结果
     */
    @Override
    public int deleteRentalSysPaymentRecordsByPaymentIds(Long[] paymentIds)
    {
        return rentalSysPaymentRecordsMapper.deleteRentalSysPaymentRecordsByPaymentIds(paymentIds);
    }

    /**
     * 删除支付记录信息
     *
     * @param paymentId 支付记录主键
     * @return 结果
     */
    @Override
    public int deleteRentalSysPaymentRecordsByPaymentId(Long paymentId)
    {
        return rentalSysPaymentRecordsMapper.deleteRentalSysPaymentRecordsByPaymentId(paymentId);
    }
}
